<%@ Page Language="C#" MasterPageFile="~/AnadoluBazaar.Master" AutoEventWireup="true" CodeBehind="Onaylamam.aspx.cs"  Inherits="OnlineAnadolu.Onaylamam" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    &nbsp;<asp:CreateUserWizard ID="CreateUserWizard1" runat="server" ActiveStepIndex="1"
        CreateUserButtonText="Devam" FinishCompleteButtonText="Devam" Height="10px" InvalidEmailErrorMessage=""
        OnCreatedUser="CreateUserWizard1_CreatedUser" OnFinishButtonClick="CreateUserWizard1_FinishButtonClick"
        OnPreviousButtonClick="CreateUserWizard1_PreviousButtonClick" RequireEmail="False"
        Width="451px">
        <WizardSteps>
            <asp:CreateUserWizardStep runat="server">
                <ContentTemplate>
                    <table border="0" style="font-size: 100%; width: 339px; height: 10px">
                        <tr>
                            <td align="center" colspan="2">
                                Sign Up for Your New Account</td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">User Name:</asp:Label></td>
                            <td align="left">
                                <asp:TextBox ID="UserName" runat="server"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                    ErrorMessage="User Name is required." ToolTip="User Name is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label></td>
                            <td align="left">
                                <asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                                    ErrorMessage="Password is required." ToolTip="Password is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Label ID="ConfirmPasswordLabel" runat="server" AssociatedControlID="ConfirmPassword">Confirm Password:</asp:Label></td>
                            <td align="left">
                                <asp:TextBox ID="ConfirmPassword" runat="server" TextMode="Password"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="ConfirmPasswordRequired" runat="server" ControlToValidate="ConfirmPassword"
                                    ErrorMessage="Confirm Password is required." ToolTip="Confirm Password is required."
                                    ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                Onay Kodu:</td>
                            <td align="left">
                                <asp:TextBox ID="tb_Onay_Kodu" runat="server" MaxLength="10"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="tb_Onay_Kodu"
                                    ErrorMessage="*" ValidationExpression="^\d{3}-\d{2}-\d{4}$"></asp:RequiredFieldValidator></td>
                        </tr>
                        <tr>
                            <td align="right">
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td align="center" colspan="2">
                                <asp:CompareValidator ID="PasswordCompare" runat="server" ControlToCompare="Password"
                                    ControlToValidate="ConfirmPassword" Display="Dynamic" ErrorMessage="The Password and Confirmation Password must match."
                                    ValidationGroup="CreateUserWizard1"></asp:CompareValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" colspan="2" style="color: red">
                                &nbsp;</td>
                        </tr>
                    </table>
                </ContentTemplate>
            </asp:CreateUserWizardStep>
            <asp:WizardStep ID="CreateUserWizardStep0" runat="server">
                <table>
                    <tr>
                        <th>
                            Onaylama Kodu Giris</th>
                    </tr>
                    <tr>
                        <td style="height: 26px">
                            Kullanici Adi:
                        </td>
                        <td align="left" style="height: 26px; width: 170px;">
                            <asp:TextBox ID="tb_KullaniciAdi" runat="server" MaxLength="50"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tb_KullaniciAdi"
                                ErrorMessage="*"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 14px">
                            Onay Kodu:</td>
                        <td align="left" style="height: 14px; width: 170px;">
                            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                <ContentTemplate>
                                    <br />
                                    <asp:TextBox ID="tb_Onay_Kodu" runat="server" AutoPostBack="True" MaxLength="10"
                                        OnTextChanged="tb_Onay_Kodu_TextChanged" Width="121px"></asp:TextBox>
                                    <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="tb_Onay_Kodu"
                                        ErrorMessage="*" MaximumValue="65535" MinimumValue="1000" Type="Integer"></asp:RangeValidator>
                                    <asp:Label ID="lb_Error" runat="server"></asp:Label>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 26px">
                            Sifre:
                        </td>
                        <td align="left" style="height: 26px; width: 170px;">
                            <asp:TextBox ID="tb_Sifre" runat="server" MaxLength="50" TextMode="Password"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="tb_Sifre"
                                ErrorMessage="*"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Sifre Tekrari:
                        </td>
                        <td align="left" style="width: 170px">
                            <asp:TextBox ID="tb_SifreTekrari" runat="server" MaxLength="50" TextMode="Password"></asp:TextBox>
                            <asp:CompareValidator ID="cpr_vali_sifre" runat="server" ControlToCompare="tb_Sifre"
                                ControlToValidate="tb_SifreTekrari" ErrorMessage="*"></asp:CompareValidator>
                        </td>
                    </tr>
                </table>
            </asp:WizardStep>
            <asp:CompleteWizardStep runat="server">
                <ContentTemplate>
                    <table border="0" style="font-size: 100%; width: 451px; height: 10px">
                        <tr>
                            <td align="center" colspan="2">
                                Basariyla tamamlandi</td>
                        </tr>
                        <tr>
                            <td>
                                Aktivite oldunuz.</td>
                        </tr>
                        <tr>
                            <td align="right" colspan="2">
                                <asp:Button ID="ContinueButton" runat="server" CausesValidation="False" CommandName="Continue"
                                    Text="Ana Sayfa" ValidationGroup="CreateUserWizard1" PostBackUrl="~/AnaSayfa.aspx" />
                            </td>
                        </tr>
                    </table>
                </ContentTemplate>
            </asp:CompleteWizardStep>
        </WizardSteps>
        <FinishNavigationTemplate>
            <asp:Button ID="FinishPreviousButton" runat="server" CausesValidation="False" CommandName="MovePrevious"
                Text="Geri" />
            <asp:Button ID="FinishButton" runat="server" CommandName="MoveComplete" Text="Devam" />
        </FinishNavigationTemplate>
    </asp:CreateUserWizard>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:shoppingConnectionString %>">
    </asp:SqlDataSource>
    &nbsp; &nbsp; &nbsp;<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
        DataSourceID="SqlDataSource1">
    </asp:GridView>
    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
</asp:Content>